package com.company.observer;

/**
 * 具体观察者角色，小车车主
 */
public class CarOwner implements Owner {

    @Override
    public void response(boolean flag) {
        if(flag){
            System.out.println("油价下跌，小车车主们乐开怀");
        }else{
            System.out.println("油价上涨，小车车主们好伤心");
        }
    }
}
